import Http from '../http';

import { request } from '../request';

//登录验证码
export const getDeptList = () => {
  return request(
    `/org/list`,
    {
      method: 'POST',
      body: JSON.stringify({}),
    },
    false
  );
};

export const getUserList = () => {
  return request(
    `/emp/list`,
    {
      method: 'POST',
      body: JSON.stringify({}),
    },
    false
  );
};

//考勤记录

export const getAttenList = () => {
  return request(
    '/atten/list',
    {
      method: 'POST',
      body: JSON.stringify({}),
    },
    false
  );
};

//新增考勤
export const attenAdd = (data:any) => {
    return request(
      '/atten/add',
      {
        method: 'POST',
        body: JSON.stringify(data),
      },
      false
    );
  };

//请假列表

export const getLeaveList = () => {
    return request(
      '/leave/list',
      {
        method: 'POST',
        body: JSON.stringify({}),
      },
      false
    );
  };

